import os,sys

print('软件初始化。。。')

cmdWorking = 'check.exe --checkWorking 1'
cmdTryMode = 'check.exe --checkTryMode 1'
cmdEndDate = 'check.exe --checkEndDate 1'
cmdActivate = 'check.exe --activateCode '
ret = "".join(os.popen(cmd=cmdWorking).readlines())
# 获取工作状态 和机器ID
status,uid=ret.split(' ')
print(status, uid)

code=input('如果要激活请输入注册码')
if code!='':
    ret = "".join(os.popen(cmd=cmdActivate+code).readlines())
    print(ret)
